<!--  -->
<template>
  <div class = 'tabbar'>

    <TabbarItem class="tabbarItem" Routing='/home'>
      <img slot="Tab_img" src="~assets/img/tabbarIcon/noActive/Icon_homepage.svg" alt="">
      <img slot="Tab_ActiveImg" src="~assets/img/tabbarIcon/Active/Icon_homepage.svg" alt="">
      <p slot="Tab_text">主页</p>
    </TabbarItem>
    <TabbarItem class="tabbarItem" Routing='/category'>
      <img slot="Tab_img" src="~assets/img/tabbarIcon/noActive/Icon_grade.svg" alt="">
      <img slot="Tab_ActiveImg" src="~assets/img/tabbarIcon/Active/Icon_grade.svg" alt="">
      <p slot="Tab_text">分类</p>
    </TabbarItem>
    <TabbarItem class="tabbarItem" Routing='/fine'>
      <img slot="Tab_img" src="~assets/img/tabbarIcon/noActive/Icon_flashlight.svg" alt="">
      <img slot="Tab_ActiveImg" src="~assets/img/tabbarIcon/Active/Icon_flashlight.svg" alt="">
      <p slot="Tab_text">发现</p>
    </TabbarItem>
    <TabbarItem class="tabbarItem" Routing='/shopcart'>
      <img slot="Tab_img" src="~assets/img/tabbarIcon/noActive/Icon_shopping02.svg" alt="">
      <img slot="Tab_ActiveImg" src="~assets/img/tabbarIcon/Active/Icon_shopping02.svg" alt="">
      <p slot="Tab_text">购物车</p>
    </TabbarItem>
    <TabbarItem class="tabbarItem" Routing='/profile'>
      <img slot="Tab_img" src="~assets/img/tabbarIcon/noActive/Icon_people.svg" alt="">
      <img slot="Tab_ActiveImg" src="~assets/img/tabbarIcon/Active/Icon_people.svg" alt="">
      <p slot="Tab_text">我的</p>
    </TabbarItem>
  </div>
</template>

<script>
import TabbarItem from 'components/tabbar/Tabbar_item.vue'
  export default {
  data() {
    return {
      
    }
  },
  //生命周期 - 创建完成（访问当前this实例）
  methods:{
  },
  components:{
    TabbarItem
  },
  created() {
  
  },
  //生命周期 - 挂载完成（访问DOM元素）
  mounted() {
  
  }
  }
</script>

<style scoped>
  .tabbar {
    display: flex;
    background-color: #f6f6f6;
    height: 49px;
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: 0px;
    box-shadow: 0 -1px 3px #b6b6b6;
  }
  img{
    width: 24px;
  }
  p{
    font-size: 12px;
    line-height: 8px;
    color: #515151;
  }
  .tabbarItem{
    flex: 1;
    text-align: center;
    vertical-align: middle;
    padding: 3px;
  }
  
</style>